package com.example.miniappssm.mapper;

import com.example.miniappssm.bean.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {

    List<Admin> selectAllAdmin();

    Admin selectAdminByOpenid(@Param("openid") String openid);

    void insertAdmin(Admin admin);

    void deleteAdminByOpenid(@Param("openid") String openid);

    void updateAdmin(Admin admin);
}
